Skip to content

[data][experiment] Recods implementation via opaque types#1473

Open
road21 wants to merge 7 commits intogetkyo:mainfrom
road21:recods-via-opaque-types
Open

[data][experiment] Recods implementation via opaque types#1473
road21 wants to merge 7 commits intogetkyo:mainfrom
road21:recods-via-opaque-types

Conversation

@road21
Copy link
Contributor

@road21 road21 commented Feb 25, 2026

This is an idea how to implement records via opaque types (syntax works with help of structural typing and conversion).

Currently there are two blockers to make it work:

@fwbrasil
Copy link
Collaborator

Nice! It'd be great to avoid the wrapper allocation. We already have a few APIs that are opaque types and don't provide hashCode and equals like Span. We recommend enabling strict equality due to that.

@road21
Copy link
Contributor Author

road21 commented Feb 26, 2026

It'd be great to avoid the wrapper allocation

fixed this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants